home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / networking / ip / ka9q / net_src.arc / makefile.ntc < prev    next >
Encoding:
Makefile  |  1989-05-09  |  8.7 KB  |  219 lines

  1. #
  2. #    Makefile for KA9Q TCP/IP package for NEC PC-9801 with Turbo C 2.0
  3. #
  4. # change NAMR to nomad for the Portable or vgr for the Portable Plus or
  5. #   pc for PC's or clones
  6. #
  7. # Changing from/to a Portable to/from Portable Plus or to/from a PC
  8. #   *** REQUIRES *** re-compiling all modules that depend upon 
  9. #   timer.h (MSPTICK changes) so at least edit or 'touch' timer.h and config.h
  10. #   to update their file creation/modification times.
  11. #
  12. # program will be named net$(NAMR)
  13. NAMR = 98
  14. PLUS =
  15. #PLUS = -DPLUS=1
  16. NOMAD =
  17. #NOMAD = -DNOMAD=1
  18. # tcc looks for libraries here
  19. LIBDIR = c:\tc\lib
  20. # tcc looks for include files here
  21. INCLUDE = c:\tc\include
  22. # define for a mapfile
  23. LINKOPTN =
  24. #LINKOPTN = -ll -lv -ld
  25. #
  26. CFLAGS= -v -y -O -K -G -Z -DMSDOS -DPC9801 $(NOMAD) -I$(INCLUDE)
  27. AFLAGS= /zi -DTURBO=1 $(PLUS)
  28.  
  29. all:    net$(NAMR).exe
  30.         
  31. MODEL= -mm
  32. MODELFLAG = -DLARGECODE=1
  33.  
  34. .c.obj:
  35.     tcc -c $(MODEL) $(MODELFLAG) $(CFLAGS) $*
  36.  
  37. .asm.obj:
  38.     tasm -mx $(AFLAGS) $(MODELFLAG) $*;
  39.  
  40. NETOBJS= telnet.obj tnserv.obj smisc.obj \
  41.     ftpserv.obj ftpcli.obj ftp.obj smtpserv.obj smtpcli.obj \
  42.     tcpcmd.obj tcpuser.obj tcptimer.obj tcpout.obj tcpin.obj tcpsubr.obj \
  43.     udpcmd.obj udp.obj \
  44.     ipcmd.obj ip.obj iproute.obj \
  45.     icmpcmd.obj icmp.obj \
  46.     arpcmd.obj arp.obj \
  47.     ax25cmd.obj ax25user.obj ax25.obj ax25subr.obj lapbtime.obj lapb.obj \
  48.     ax_mbx.obj \
  49.     slip.obj slfp.obj kiss.obj \
  50.     nrcmd.obj nrs.obj nr3.obj nrsubr.obj \
  51.     nr4.obj nr4subr.obj nr4user.obj nr4timer.obj \
  52.     iface.obj timer.obj ttydriv.obj cmdparse.obj mbuf.obj alloc.obj \
  53.     netuser.obj \
  54.     misc.obj pathname.obj audit.obj files.obj icmpmsg.obj \
  55.     fingcli.obj fingserv.obj mulport.obj plus.obj
  56.  
  57. NETDUMP = trace.obj enetdump.obj \
  58.     ax25dump.obj arpdump.obj ipdump.obj icmpdump.obj udpdump.obj tcpdump.obj
  59.  
  60. PCOBJS= pc.obj dirutil.obj eccmd.obj ec.obj ecvec.obj pktdrvr.obj pkvec.obj \
  61.     enet.obj \
  62.     pc100.obj pc100vec.obj hapn.obj \
  63.     hapnvec.obj 8250.obj asyvec.obj pcgen.obj eagle.obj eaglevec.obj \
  64.     8530.obj brk.obj
  65. #command.obj 
  66.  
  67. HFILES= amiga.h arp.h ax_mbx.h ax25.h cmdparse.h config.h dir.h \
  68.     ftp.h global.h icmp.h iface.h internet.h  ip.h kiss.h lapb.h \
  69.     mbuf.h netuser.h session.h slip.h smtp.h tcp.h telnet.h \
  70.     timer.h trace.h udp.h
  71.  
  72. net$(NAMR).exe:  pc.lib net.lib dump.lib makefile main.obj version.obj session.obj
  73.     tcc $(MODEL) $(LINKOPTN) -L$(LIBDIR) -enet$(NAMR) main.obj version.obj session.obj pc.lib net.lib dump.lib
  74.  
  75. objects: $(NETOBJS) $(PCOBJS)
  76.  
  77. net.lib: $(NETOBJS) netnames.res
  78.     del net.lib
  79.     tlib net @netnames.res
  80.  
  81. dump.lib: $(NETDUMP) dumpnames.res
  82.     del dump.lib
  83.     tlib dump @dumpname.res
  84.  
  85. pc.lib: $(PCOBJS) pcnames.res
  86.     del pc.lib
  87.     tlib pc @pcnames.res
  88.  
  89. clean:    nul
  90.     del *.lib
  91.     del *.obj
  92.     del *.exe
  93.     del *.sym
  94.  
  95. #make begin says to start from the beginning.
  96. begin: clean
  97.     tcc -c $(MODEL) $(MODELFLAG) $(CFLAGS) *.c
  98.     tasm -mx $(AFLAGS) $(MODELFLAG) *.asm
  99.  
  100. # archive into net_src1.arc and net_src2.net
  101. archive:    nul
  102.     del net_src1.arc
  103.     del net_src2.arc
  104.     pkarc -oct -a net_src1 @one_srce
  105.     pkarc -oct -a net_src2 @two_srce
  106.  
  107. 8530.obj:    8530.c global.h 8530.h
  108. arp.obj:    arp.c global.h mbuf.h timer.h iface.h enet.h ax25.h arp.h
  109. arpcmd.obj:    arpcmd.c global.h mbuf.h timer.h enet.h ax25.h arp.h cmdparse.h
  110. arpdump.obj:    arpdump.c global.h mbuf.h timer.h arp.h
  111. 8250.obj:    8250.c global.h asy.h 8250.h iface.h config.h
  112. ax_mbx.obj:    ax_mbx.c ax_mbx.h global.h mbuf.h ax25.h timer.h iface.h \
  113.         lapb.h cmdparse.h netrom.h nr4.h
  114. ax25.obj:    ax25.c global.h mbuf.h iface.h timer.h arp.h slip.h ax25.h \
  115.         lapb.h heard.h
  116. ax25cmd.obj:    ax25cmd.c global.h mbuf.h ax25.h timer.h iface.h lapb.h \
  117.         cmdparse.h session.h ax_mbx.h heard.h
  118. ax25dump.obj:    ax25dump.c global.h mbuf.h ax25.h timer.h lapb.h trace.h
  119. ax25subr.obj:    ax25subr.c global.h mbuf.h timer.h ax25.h lapb.h
  120. ax25user.obj:    ax25user.c global.h mbuf.h timer.h ax25.h lapb.h
  121. asyvec.obj:    asyvec.asm config.h
  122. cmdparse.obj:    cmdparse.c global.h trace.h cmdparse.h
  123. eagle.obj:    eagle.c global.h mbuf.h iface.h eagle.h 8530.h ax25.h
  124.     tcc -c $(MODEL) $(MODELFLAG) $(CFLAGS) eagle.c
  125.  
  126. ec.obj:        ec.c global.h mbuf.h enet.h ec.h iface.h timer.h arp.h trace.h
  127. eccmd.obj:    eccmd.c global.h mbuf.h ec.h
  128. enet.obj:    enet.c global.h mbuf.h enet.h
  129. enetdump.obj:    enetdump.c global.h mbuf.h enet.h trace.h
  130. files.obj:    files.c global.h config.h
  131. fingcli.obj:    finger.h global.h mbuf.h timer.h internet.h icmp.h netuser.h \
  132.         tcp.h session.h
  133. fingserv.obj:    finger.h global.h mbuf.h timer.h internet.h icmp.h netuser.h \
  134.         tcp.h session.h
  135. ftp.obj:    ftp.c global.h mbuf.h netuser.h timer.h tcp.h ftp.h session.h
  136. ftpcli.obj:    ftpcli.c global.h mbuf.h netuser.h icmp.h timer.h tcp.h ftp.h \
  137.         session.h cmdparse.h
  138. ftpserv.obj:    ftpserv.c global.h mbuf.h netuser.h timer.h tcp.h ftp.h
  139. hapn.obj:    hapn.c global.h mbuf.h iface.h hapn.h ax25.h trace.h
  140. icmp.obj:    icmp.c global.h mbuf.h internet.h timer.h iface.h ip.h icmp.h
  141. icmpcmd.obj:    icmpcmd.c global.h icmp.h mbuf.h netuser.h internet.h timer.h \
  142.         ping.h
  143. icmpdump.obj:    icmpdump.c global.h mbuf.h internet.h icmp.h trace.h
  144. icmpmsg.obj:    icmpmsg.c global.h
  145. iface.obj:    iface.c iface.h
  146. ip.obj:        ip.c global.h mbuf.h timer.h internet.h iface.h ip.h icmp.h
  147. ipcmd.obj:    ipcmd.c global.h mbuf.h internet.h timer.h netuser.h iface.h \
  148.         ip.h cmdparse.h
  149. ipdump.obj:    ipdump.c global.h mbuf.h internet.h timer.h iface.h ip.h \
  150.         trace.h netuser.h
  151. iproute.obj:    iproute.c global.h mbuf.h internet.h timer.h netuser.h ip.h \
  152.         icmp.h iface.h trace.h
  153. kiss.obj:    kiss.c global.h mbuf.h iface.h kiss.h
  154. lapb.obj:    lapb.c global.h mbuf.h timer.h ax25.h lapb.h
  155. lapbtime.obj:    lapbtime.c global.h mbuf.h ax25.h timer.h lapb.h
  156. lcsum.obj:    lcsum.c global.h
  157.  
  158. # This next line is for the PC
  159. main.obj:    main.c config.h global.h mbuf.h netuser.h timer.h icmp.h \
  160.         iface.h ip.h tcp.h ftp.h telnet.h session.h cmdparse.h asy.h \
  161.         trace.h remote.h
  162.  
  163. # and this is for the others
  164. #main.obj:    main.c config.h global.h mbuf.h netuser.h timer.h icmp.h \
  165. #        iface.h ip.h tcp.h ftp.h telnet.h session.h cmdparse.h trace.h
  166.  
  167. mbuf.obj:    mbuf.c global.h mbuf.h
  168. mulport.obj:    mulport.c global.h mbuf.h iface.h ax25.h config.h
  169. netuser.obj:    netuser.c global.h netuser.h
  170. nr3.obj:    nr3.c global.h mbuf.h iface.h timer.h arp.h slip.h ax25.h \
  171.         netrom.h nr4.h lapb.h
  172. nr4subr.obj:    nr4subr.c global.h mbuf.h timer.h ax25.h netrom.h nr4.h lapb.h
  173. nr4timer.obj:    nr4timer.c global.h mbuf.h timer.h ax25.h netrom.h nr4.h
  174. nr4.obj:    nr4.c global.h mbuf.h timer.h ax25.h netrom.h nr4.h
  175. nr4user.obj:    nr4user.c global.h mbuf.h timer.h ax25.h netrom.h nr4.h
  176. nrcmd.obj:    nrcmd.c global.h config.h mbuf.h ax25.h netrom.h nr4.h timer.h \
  177.         iface.h lapb.h cmdparse.h session.h config.h ax_mbx.h
  178. nrs.obj:    nrs.c global.h mbuf.h iface.h ax25.h nrs.h asy.h trace.h
  179. nrsubr.obj:    nrsubr.c global.h mbuf.h timer.h ax25.h netrom.h lapb.h
  180. pc.obj:        pc.c global.h mbuf.h internet.h iface.h cmdparse.h config.h
  181. pc100.obj:    pc100.c global.h mbuf.h iface.h pc100.h 8530.h ax25.h trace.h
  182. pktdrvr.obj:    pktdrvr.c global.h mbuf.h enet.h iface.h ec.h timer.h arp.h \
  183.         trace.h regs.h pktdrvr.h
  184. plus.obj:    plus.c global.h asy.h plus.h iface.h config.h
  185. session.obj:    session.c config.h global.h mbuf.h netuser.h timer.h tcp.h \
  186.         ax25.h lapb.h ftp.h telnet.h session.h netrom.h nr4.h
  187.  
  188. # This next line is for the PC
  189. slip.obj:    slip.c global.h mbuf.h iface.h ax25.h slip.h asy.h trace.h\
  190.         timer.h config.h
  191.  
  192. # and this is for the others
  193. #slip.obj:    slip.c global.h mbuf.h iface.h ax25.h slip.h trace.h
  194.  
  195. slfp.obj: slfp.c global.h mbuf.h iface.h ax25.h slip.h asy.h trace.h config.h
  196. smisc.obj:    smisc.c global.h mbuf.h netuser.h timer.h tcp.h remote.h
  197. smtpcli.obj:    smtpcli.c global.h netuser.h mbuf.h timer.h tcp.h smtp.h trace.h
  198. smtpserv.obj:    smtpserv.c global.h mbuf.h netuser.h timer.h tcp.h smtp.h
  199. tcpcmd.obj:    tcpcmd.c global.h timer.h mbuf.h netuser.h internet.h tcp.h
  200. tcpdump.obj:    tcpdump.c global.h mbuf.h netuser.h internet.h timer.h tcp.h \
  201.         trace.h
  202. tcpin.obj:    tcpin.c global.h timer.h mbuf.h netuser.h internet.h tcp.h \
  203.         icmp.h iface.h ip.h
  204. tcpout.obj:    tcpout.c global.h timer.h mbuf.h netuser.h internet.h tcp.h
  205. tcpsubr.obj:    tcpsubr.c global.h timer.h mbuf.h netuser.h internet.h tcp.h
  206. tcptimer.obj:    tcptimer.c global.h timer.h mbuf.h netuser.h internet.h ip.h \
  207.         tcp.h
  208. tcpuser.obj:    tcpuser.c global.h timer.h mbuf.h netuser.h internet.h tcp.h
  209. telnet.obj:    telnet.c global.h mbuf.h timer.h internet.h icmp.h netuser.h \
  210.         tcp.h telnet.h session.h
  211. tnserv.obj:    tnserv.c global.h mbuf.h timer.h internet.h icmp.h netuser.h \
  212.         tcp.h telnet.h session.h
  213. trace.obj:    global.h mbuf.h iface.h trace.h
  214. timer.obj:    timer.c global.h timer.h
  215. udp.obj:    udp.c global.h mbuf.h netuser.h udp.h internet.h
  216. udpcmd.obj:    udpcmd.c global.h mbuf.h netuser.h udp.h internet.h
  217. udpdump.obj:    udpdump.c global.h mbuf.h netuser.h internet.h udp.h
  218. version.obj:    version.c 
  219.